package com.buer.storage.service;

import com.buer.storage.dto.*;
import com.buer.storage.entity.Dorder;
import com.buer.storage.entity.DorderDO;
import com.buer.storage.entity.Stock;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface DorderService {

    //查询所有库存
    List<Stock> findStock();
    //查询所有库存
    PageInfo<Dorder> selectByAll(Map<String,Object> params);


    //增加入库
    int insert(OutStorageDto outStorageDto);

    int insertBatch(BatchOrderDto batchOrderDto);
    int updateBatch(BatchOrderDto batchOrderDto);
    int updateOrder(OutBatchOrderDto outBatchOrderDto);
    int deleteBatch(BatchOrderDto batchOrderDto);

    //查询订单
    List<DorderDto> findOrderAll();

    //根据订单id删除订单信息
    int deleteOutStorageById(int outId);

    //根据装备表id删除商品信息
    int deleteDorderdetails(int deliveryId);

    //查询入库表
    List<OutStorageAllDto> findOutAll(int outId);
    //更新商品
    int updateDorderdetails(OutStorageDto outStorageDto);

    int submitAddBuerStock(int outId);

    PageInfo<DorderDto> getDord(Map<String, Object> map);

    PageInfo<DorderdetailsDto> getDorderdetails(Map<String, Object> map);

    PageInfo<StockDto> selectByDate(Map<String, Object> map);
//    List<StockDto> selectByDate();

    Dorder getOne(Map<String, Object> map);

    int save(DorderDO dorder);
}
